package com.firesrc.service.impl;

import java.util.List;

import com.firesrc.bean.Keyword;
import com.firesrc.dao.KeywordDao;
import com.firesrc.dao.impl.KeywordDaoImpl;
import com.firesrc.service.KeywordService;

public class KeywordServiceImpl implements KeywordService {
  private KeywordDao dao;

  public KeywordServiceImpl() {
    dao = new KeywordDaoImpl();
  }

  @Override
  public List<String> getTopicList() {
    return dao.getTopicList();
  }

  @Override
  public void setMailSendByTopic(String topic) {
    dao.setMailSendByTopic(topic);

  }

  @Override
  public List<Keyword> getTopSearchKeywordList() {
    return dao.getTopSearchKeywordList();
  }

  @Override
  public void setSearchedByName(String keywordName) {
    dao.setSearchedByName(keywordName);
  }

  @Override
  public void add(Keyword keyword) {
    dao.add(keyword);

  }

  @Override
  public void setSearchedByNames(String keyWordNames) {
    dao.setSearchedByNames(keyWordNames);
  }

}
